package com.photographysharing.mapper;

import com.photographysharing.dto.LikeDTO;
import com.photographysharing.entity.Likes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Z
* @description 针对表【likes】的数据库操作Mapper
* @createDate 2024-05-14 21:15:11
* @Entity com.photographysharing.entity.Likes
*/
@Mapper
public interface LikesMapper extends BaseMapper<Likes> {

    public List<LikeDTO> selectByAll(@Param("index") int index,
                                     @Param("size") int size,
                                     @Param("name") String name,
                                     @Param("userId") String userId);

    int selectCount(@Param("name") String name,
                    @Param("userId") String userId);
}




